package similarity.simiMatrix;

import org.dom4j.*;
import java.util.*;

public interface SimilarityMatrix
{
    /**
     * Calculate similarity matrix
     * 
     * @param trainDocList
     *            training xml document set
     * @param DTD
     *            DTD file
     * 
     * @return true if calculate succeed, false otherwise
     */
    public boolean calcSimMatrix(ArrayList<Document> trainDocList, Document DTD);

    /**
     * Save the similarity matrix content to local disk
     * 
     * @return true if save succeed, false otherwise
     */
    public boolean saveSimilarityMatrix();

    /**
     * Load the similarity matrix content from local disk
     * 
     * @return true if load succeed, false otherwise
     */
    public boolean loadSimilarityMatrix();
}
